package main

import "fmt"

func main() {
	a := [10]int{1,2,3,4,5,6,7,8,9,10}
	s1 := a[3:8]
	s2 := s1[1:3]
	fmt.Println(s1)
	fmt.Println(s2)

	s3 := s1[1:7]
	fmt.Println(s3)

	fmt.Println(cap(s1), cap(s2), cap(s3))
}